set(STPCOMM_SRCS
config_parser.cc
stp_token.cc
stp_idx_mgr.cc
stp_crypto_negotiate.cc
stp_crypto_detail.cc
)

add_library(stpcomm SHARED ${STPCOMM_SRCS})
target_link_libraries(stpcomm stputil pthread rt glog event)


file(GLOB HEADERS "*.h")
# install(FILES ${HEADERS} DESTINATION include/stpcomm)

install(TARGETS stpcomm DESTINATION lib)

if(NOT CMAKE_BUILD_NO_EXAMPLES)
 add_subdirectory(tests)
endif()
